home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / a_utils / perl / msds-prl / ptchds19.zoo / while_t < prev    next >
Text File  |  1992-02-23  |  4KB  |  161 lines

  1. MS-DOS patches to perl.
  2. Apply this patch to the standard perl source, version 4, patch level 19,
  3. using "patch -p."  Do this in the root directory of the perl source
  4. distribution.
  5.  
  6. You can cat all these patches together and pipe the output to patch -p.
  7.  
  8. Len Reed
  9. Holos Software, Inc.
  10. ..!gatech!holos0!lbr
  11. holos0!lbr@gatech.edu
  12. --------------------------------------
  13. *** t/cmd/while.t.old    Tue Apr 23 22:38:40 1991
  14. --- t/cmd/while.t    Thu Nov 14 08:57:02 1991
  15. ***************
  16. *** 4,10 ****
  17.   
  18.   print "1..10\n";
  19.   
  20. ! open (tmp,'>Cmd.while.tmp') || die "Can't create Cmd.while.tmp.";
  21.   print tmp "tvi925\n";
  22.   print tmp "tvi920\n";
  23.   print tmp "vt100\n";
  24. --- 4,19 ----
  25.   
  26.   print "1..10\n";
  27.   
  28. ! eval('umask');    # won't work on MS-DOS
  29. ! $msdos = $@;
  30. ! if ( $msdos ) {
  31. !     $rm = $ENV{'ROOTDIR'} . '/bin/rm';
  32. ! }
  33. ! else {
  34. !     $rm = '/bin/rm';
  35. ! }
  36. ! open (tmp,'>Cmd_while.tmp') || die "Can't create Cmd_while.tmp.";
  37.   print tmp "tvi925\n";
  38.   print tmp "tvi920\n";
  39.   print tmp "vt100\n";
  40. ***************
  41. *** 14,20 ****
  42.   
  43.   # test "last" command
  44.   
  45. ! open(fh,'Cmd.while.tmp') || die "Can't open Cmd.while.tmp.";
  46.   while (<fh>) {
  47.       last if /vt100/;
  48.   }
  49. --- 23,29 ----
  50.   
  51.   # test "last" command
  52.   
  53. ! open(fh,'Cmd_while.tmp') || die "Can't open Cmd_while.tmp.";
  54.   while (<fh>) {
  55.       last if /vt100/;
  56.   }
  57. ***************
  58. *** 23,29 ****
  59.   # test "next" command
  60.   
  61.   $bad = '';
  62. ! open(fh,'Cmd.while.tmp') || die "Can't open Cmd.while.tmp.";
  63.   while (<fh>) {
  64.       next if /vt100/;
  65.       $bad = 1 if /vt100/;
  66. --- 32,38 ----
  67.   # test "next" command
  68.   
  69.   $bad = '';
  70. ! open(fh,'Cmd_while.tmp') || die "Can't open Cmd_while.tmp.";
  71.   while (<fh>) {
  72.       next if /vt100/;
  73.       $bad = 1 if /vt100/;
  74. ***************
  75. *** 33,39 ****
  76.   # test "redo" command
  77.   
  78.   $bad = '';
  79. ! open(fh,'Cmd.while.tmp') || die "Can't open Cmd.while.tmp.";
  80.   while (<fh>) {
  81.       if (s/vt100/VT100/g) {
  82.       s/VT100/Vt100/g;
  83. --- 42,48 ----
  84.   # test "redo" command
  85.   
  86.   $bad = '';
  87. ! open(fh,'Cmd_while.tmp') || die "Can't open Cmd_while.tmp.";
  88.   while (<fh>) {
  89.       if (s/vt100/VT100/g) {
  90.       s/VT100/Vt100/g;
  91. ***************
  92. *** 49,55 ****
  93.   # test "last" command
  94.   
  95.   $badcont = '';
  96. ! open(fh,'Cmd.while.tmp') || die "Can't open Cmd.while.tmp.";
  97.   line: while (<fh>) {
  98.       if (/vt100/) {last line;}
  99.   } continue {
  100. --- 58,64 ----
  101.   # test "last" command
  102.   
  103.   $badcont = '';
  104. ! open(fh,'Cmd_while.tmp') || die "Can't open Cmd_while.tmp.";
  105.   line: while (<fh>) {
  106.       if (/vt100/) {last line;}
  107.   } continue {
  108. ***************
  109. *** 62,68 ****
  110.   
  111.   $bad = '';
  112.   $badcont = 1;
  113. ! open(fh,'Cmd.while.tmp') || die "Can't open Cmd.while.tmp.";
  114.   entry: while (<fh>) {
  115.       next entry if /vt100/;
  116.       $bad = 1 if /vt100/;
  117. --- 71,77 ----
  118.   
  119.   $bad = '';
  120.   $badcont = 1;
  121. ! open(fh,'Cmd_while.tmp') || die "Can't open Cmd_while.tmp.";
  122.   entry: while (<fh>) {
  123.       next entry if /vt100/;
  124.       $bad = 1 if /vt100/;
  125. ***************
  126. *** 76,82 ****
  127.   
  128.   $bad = '';
  129.   $badcont = '';
  130. ! open(fh,'Cmd.while.tmp') || die "Can't open Cmd.while.tmp.";
  131.   loop: while (<fh>) {
  132.       if (s/vt100/VT100/g) {
  133.       s/VT100/Vt100/g;
  134. --- 85,91 ----
  135.   
  136.   $bad = '';
  137.   $badcont = '';
  138. ! open(fh,'Cmd_while.tmp') || die "Can't open Cmd_while.tmp.";
  139.   loop: while (<fh>) {
  140.       if (s/vt100/VT100/g) {
  141.       s/VT100/Vt100/g;
  142. ***************
  143. *** 90,96 ****
  144.   if (!eof || $bad) {print "not ok 8\n";} else {print "ok 8\n";}
  145.   if (!$badcont) {print "ok 9\n";} else {print "not ok 9\n";}
  146.   
  147. ! `/bin/rm -f Cmd.while.tmp`;
  148.   
  149.   #$x = 0;
  150.   #while (1) {
  151. --- 99,106 ----
  152.   if (!eof || $bad) {print "not ok 8\n";} else {print "ok 8\n";}
  153.   if (!$badcont) {print "ok 9\n";} else {print "not ok 9\n";}
  154.   
  155. ! close(fh) if $msdos;    # Can't unlink open file in DOS )-:
  156. ! `$rm -f Cmd_while.tmp`;
  157.   
  158.   #$x = 0;
  159.   #while (1) {
  160.